package cn.wolfcode.cloud.shop.web.result;

import lombok.*;
import org.springframework.web.bind.annotation.GetMapping;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Description: 用户登入参数封装实体类
 * @Author: 伍家钰
 * @Date: 2020/9/6 12:50
 * @Version: 1.0
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LoginVo {
    // 账号
    //@Pattern(regexp = "1[3456789]\\d{9}",message = "手机格式不正确")
    @NotNull(message = "手机不为空")
    private String username;
    // 密码
    @NotNull(message = "密码不能为空")
    private String password;
}
